package com.yoga.manager.app;

import com.yoga.common.appexception.AppException;
import com.yoga.common.enumcommon.SmsBusinessEnum;

/**
 * Created by chenjin on 2019/7/9.
 */
public interface CaptchaCodeManager {


    //添加缓存验证码
    public  boolean addToCache(String phoneNumber, SmsBusinessEnum captchaTypeEnum) throws AppException;


    //验证验证码是否正确
    public  boolean validation(String phoneNumber, String code, SmsBusinessEnum captchaTypeEnum)throws AppException;

}
